<html>
	<head>
	</head>
	<body>
		<script language="javascript">
			var n = prompt("金字塔行数：");
			

			for (var i = 1; i <= n; i++) {

				for (var j = 1; j <= n - i; j++) {
					document.write("&nbsp");
				}
				for (var j = 1; j <= 2 * i - 1; j++) {

					document.write("* ");
				}
				document.write("<br />");
			}
		</script>
	</body>
</html>
